import hyRequest from '@/service'

// 行政组织管理-查询全部
export const getPartOrg = () => {
  return hyRequest.post({
    url: '/village/govPanel/govOrg/findAll'
  })
}

// 性别占比-详情 数字仓
export const getGenderRatio = (form: any) => {
  return hyRequest.post({
    url: '/village/genderRatio/select',
    data: form,
    isFormData: true
  })
}

// 性别占比-修改 数字仓
export const setGenderRatio = (form: any) => {
  return hyRequest.post({
    url: '/village/genderRatio/update',
    data: form
  })
}

// 党员管理-详情 数字仓
export const getPartyMemberData = (form: any) => {
  return hyRequest.post({
    url: '/village/partyMemberData/select',
    data: form,
    isFormData: true
  })
}

// 党员管理-修改 数字仓
export const setPartyMemberData = (form: any) => {
  return hyRequest.post({
    url: '/village/partyMemberData/update',
    data: form
  })
}

// 学历学位-详情 数字仓
export const getEducation = (form: any) => {
  return hyRequest.post({
    url: '/village/education/select',
    data: form,
    isFormData: true
  })
}

// 学历学位-修改 数字仓
export const setEducation = (form: any) => {
  return hyRequest.post({
    url: '/village/education/update',
    data: form
  })
}

// 党龄分布-详情 数字仓
export const getPartyAge = (form: any) => {
  return hyRequest.post({
    url: '/village/partyAge/select',
    data: form,
    isFormData: true
  })
}

// 党龄分布-修改 数字仓
export const setPartyAge = (form: any) => {
  return hyRequest.post({
    url: '/village/partyAge/update',
    data: form
  })
}

// 党委概况-详情 数字仓
export const getPartyBody = (form: any) => {
  return hyRequest.post({
    url: '/village/partyBody/select',
    data: form,
    isFormData: true
  })
}

// 党委概况-修改 数字仓
export const setPartyBody = (form: any) => {
  return hyRequest.post({
    url: '/village/partyBody/update',
    data: form
  })
}

// 党组织活动-详情 数字仓
export const getPartyEvent = (form: any) => {
  return hyRequest.post({
    url: '/village/partyEvent/select',
    data: form,
    isFormData: true
  })
}

// 党组织活动-详情 数字仓
export const setPartyEvent = (form: any) => {
  return hyRequest.post({
    url: '/village/partyEvent/update',
    data: form
  })
}
